/*
 * Engine.java
 * Team qq 2011
 */
package main.java.backend.com.teamqq.timetrail;

/**
 * an Item implementation for an engine, think oxen in Oregon trail
 * they don't weigh anything because they're on the ship
 * @author Steven
 * @version 1.0
 *
 */
public class Engine extends Item {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3010L;

	/** The weight of the engine in the inventory*/
	private static final int ENGINE_WEIGHT = 0;
    
	/** The base price of an engine*/
	private static final int ENGINE_VALUE = 40;
	
	/** The maximum amount of engines allowed in an inventory*/
	private static final int ENGINE_MAX = 10;
	
	/** Engine's name in string form*/
	private static final String ENGINE_NAME = "Engine";
    
	/**
	 * Returns the weight of one engine
	 * @return an engine's weight
	 */
	@Override
	public int getWeight() {
		return ENGINE_WEIGHT;
	}
	
	/**
	 * Returns the base price of one engine
	 * @return the engine's value
	 */
	@Override
	public int getValue() {
		return ENGINE_VALUE;
	}
	
	/**
	 * Return the max amount of engines storable in an inventory
	 * @return the max amount of engines
	 */
	@Override
	public int getMaxAmount() {
		return ENGINE_MAX;
	}

	/**
	 * return the item's name in string form
	 * @return Engine's name
	 */
	@Override
	public String getItemName() {
		return ENGINE_NAME;
	}

}
